How to put images in a box without space using Bootstrap?
Bootstrap 4 is a CSS a library for frontend web development developed by Twitter which helps the developer to beautify the way the webpage looks. The bootstrap library has pre-defined CSS classes that are easy to use and it helps the developer to provide an artistic look to the website with minimal effort....
read more
How to dynamically load JS inside JS ?
Most of the time, we use static import to include all the exports in our script at the beginning. The import happens every time the script is used, whether the module is used or not. Thus, if someone wants to conditionally import certain parts of a module when required, the static import would be of no help. Thus, given a JavaScript code, we need to find a solution to load other JavaScript modules only when it is required dynamically....
read more
How to make a spider-bot in PHP ?
In this article, we’ll see how to make both a simple and relatively advanced web-crawler (or spider-bot) in PHP. The simpler one will simply output all the links it finds in a webpage while the advanced one will add the titles, keywords and descriptions to a conceptual database (conceptual means there is no SQL database being used in this article)! Compared to Google even our advanced web-crawler is actually just a simple web-crawler since our crawler doesn’t use any AI-agent! We’ll go through a total of 3 iterations before concluding the article – each one of them with an explanation....
read more
Difference between array.size() and array.length in JavaScript
The array.size() method is functionally equivalent to the array.length property and it can be only used in jQuery. Here in JavaScript array.size() is invalid method so array.length property should be used. Below examples implement the above concept:...
read more
Difference between React Native and Flutter
...
read more
Code Golfing in JavaScript
Code Golf in JavaScript refers to attempting a problem to solve using the least amount of characters possible. Like in Golf, the low score wins, the fewest amount of characters “wins”. JavaScript is a fantastic language for code golfing due to backward compatibility, quirks, it is being a high-level language, and all the coercion. So, here we will look at some Code Golfing techniques in JavaScript language: 1. Checks if a variable is equal to some positive no: We can simply do this with a bunch of if-else statements, but we have different methods also like subtracting that positive integer from the number and checks whether it is greater than zero or not....
read more
How to convert an existing callback to a promise in Node.js ?
Callback: In terms of JavaScript, callback is a function passed as a parameter to another function. The function executes as soon as the result of the calling function gets ready. In simple words, it handles the asynchronous requirement of JavaScript....
read more
How to draw Inscribed circle of a triangle using p5.js ?
...
read more
HTTP headers | Sec-WebSocket-Accept
The HTTP headers are used for passing additional information with an HTTP request or response between the client and the server. They are grouped as general-headers, request-headers, response-headers, entity-headers. The Sec-WebSocket-Accept header falls under the response-type headers category. It is used by the server to intimate the client that it understood. It was a WebSocket connection and it is ready to open connection. This comes handy for a reverse-proxy server as it can understand the WebSocket handshake and not to make a useless cache. The Sec-WebSocket-Accept header must not appear more than once in an HTTP response....
read more
ESLint – Pluggable JavaScript linter
Before getting into ESlint first you should be aware of linting. It is the process of checking the code for any errors. A Linter is an automated tool that runs on a static piece of code to find any kind of discrepancy arising due to formatting or due to bad coding practices. Running a Linting tool over the source code helps to improve the quality and readability of the code....
read more
Interesting Facts and Features about AngularJS
Let’s take a ride through some interesting Facts or Features about AngularJS:...
read more
How to get bounding-box of different Shapes in p5.js ?
In this article, we will see how to get the bounding-box of different shapes. We will use P5.js which is a Javascript framework creative programming environment and is very much inspired by Processing....
read more